//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __TIMEMANAGER_H__
#define __TIMEMANAGER_H__

_ELASTOS ECode DzFindService(const wchar_t * pwszName, PInterface *ppObj);

#ifdef  __cplusplus
extern "C" {
#endif

/*exported API*/
_ELASTOS ECode PowerCreateTimer(
    int *pTimerID, unsigned long Resolution, unsigned  Interval,
    TimerCallBackProc pCallbackProc, void * pvArg);
_ELASTOS ECode PowerKillTimer(int TimerID);
_ELASTOS ECode PowerStartTimer(int TimerID);
_ELASTOS ECode PowerStopTimer(int TimerID);
_ELASTOS ECode PowerReStartTimer(int TimerID,int Interval);
_ELASTOS ECode PowerSetTimerInterval(int TimerID, int Interval);
_ELASTOS ECode PowerShortTimer(int TimerID);
_ELASTOS ECode PowerGetLeftTime(int TimerID, unsigned long *pTimes);
#ifdef  __cplusplus
}
#endif

#endif//__TIMEMANAGER_H__
